package com.zfj.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zfj.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author zfj
 * @date 2022/6/27 -15:39
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

	@Select("select * from admin_table where password = #{password}")
	public List<Admin> getAll(@Param("password")String password);

	public Admin selectByUsername(@Param("username") String username);

	public List<Admin> selectAll();
}
